package expenager.prjct.two;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class Expenagerproject2Activity extends Activity{
	ImageButton btnPreference;
	Button btntrans;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);	
	
	btnPreference = (ImageButton) findViewById(R.id.btnpref);
	btntrans = (Button) findViewById(R.id.butrans);


	btnPreference.setOnClickListener(new View.OnClickListener() {
		
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent i = new Intent(getApplicationContext(), preference.class);
			startActivity(i);
		}
	});

btntrans.setOnClickListener(new View.OnClickListener() {
		
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent i = new Intent(getApplicationContext(), trans.class);
			startActivity(i);
		}
	});
	
}

}
